package com.hc.oa.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;

/**
 * natice_info:
 */
@Entity
@Table(name = "natice_info")
public class NaticeInfo implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * noticeinfo_id:
	 */
	private int noticeinfoId;

	/**
	 * department_id:
	 */
	private String departmentId;

	/**
	 * create_time:
	 */
	private Date createTime;

	/**
	 * info:
	 */
	private String info;

	/**
	 * status:
	 */
	private String status;

	public NaticeInfo() {
		super();
	}

	public NaticeInfo(int noticeinfoId, String departmentId, Date createTime,
			String info, String status) {
		super();
		this.noticeinfoId = noticeinfoId;
		this.departmentId = departmentId;
		this.createTime = createTime;
		this.info = info;
		this.status = status;
	}

	public void setNoticeinfoId(int noticeinfoId) {
		this.noticeinfoId = noticeinfoId;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "noticeinfo_id", nullable = false)
	public int getNoticeinfoId() {
		return noticeinfoId;
	}

	public void setDepartmentId(String departmentId) {
		this.departmentId = departmentId;
	}

	@Column(name = "department_id", length = 50)
	public String getDepartmentId() {
		return departmentId;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "create_time")
	public Date getCreateTime() {
		return createTime;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	@Lob
	@Basic(fetch = FetchType.EAGER)
	@Column(name = "info", columnDefinition = "CLOB")
	public String getInfo() {
		return info;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "status", length = 2)
	public String getStatus() {
		return status;
	}

	public String toString() {
		return "NaticeInfo [noticeinfoId=" + noticeinfoId + ",departmentId="
				+ departmentId + ",createTime=" + createTime + ",info=" + info
				+ ",status=" + status + "]";
	}

}
